package cn.edu.cug.cs.gtl.utils;

import cn.edu.cug.cs.gtl.entity.Role;
import cn.edu.cug.cs.gtl.entity.User;

import java.util.List;

public interface UserManager{
    boolean register(String username,String password,String phone);

    User login(String username,String password);

    void insertUser(User user);

    User getUser();

    void insertRole(Role role);

    void updateRole(Role role,int id);

    List<Role> getList();

    int getIdByName(String roleName);

    void removeRole(String roleName);

}
